package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.TestQuestion;
import com.tanhua.model.vo.PageResult;

import java.util.List;
import java.util.Map;

public interface TestQuestionApi {
    Map<String, TestQuestion> findByIds(List<String> questionId);

    List<TestQuestion> findAll();

    PageResult findByPage(Integer page, Integer pageSize);

    void deleteById(String id);

    TestQuestion findById(String id);

    void save(TestQuestion questions);

    void update(TestQuestion questions,String questionId);

    List<TestQuestion> findByPaperId(String id);

    void updateByPaperId(String id);
}